import 'package:base/base/base.dart';
import 'package:base/http/http.dart';
import 'package:flutter/material.dart';
import 'package:turo/auth_interceptor.dart';

import 'app/app.dart';

void main() {
  // initMain('http://207.148.120.160:39090');
  initMain('http://192.168.110.235:3000');
}

void initMain(String url) {
  App.init(() => {
        //初始化网络
        ApiFactory().createApi(url, interceptor: [AuthInterceptor()]),
        runApp(Application())
      });
}
